
<!DOCTYPE HTML>
<html>
 <head>
  <title>后台管理系统</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="<?php echo $this->url->getBaseUri() ?>public/back/assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
  <link href="<?php echo $this->url->getBaseUri() ?>public/back/assets/css/bui-min.css" rel="stylesheet" type="text/css" />
   <link href="<?php echo $this->url->getBaseUri() ?>public/back/assets/css/main-min.css" rel="stylesheet" type="text/css" />
 </head>
 <body>

  <div class="header">
    
      <div class="dl-title">
       <!--<img src="/chinapost/Public/assets/img/top.png">-->
      </div>

    <div class="dl-log">欢迎您，<span class="dl-log-user"><?php echo $_operator->name;?></span><a href="<?php echo $this->url->getBaseUri()?>admin/main/exit" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
  </div>
   <div class="content">
    <div class="dl-main-nav">
      <div class="dl-inform"><div class="dl-inform-title"><s class="dl-inform-icon dl-up"></s></div></div>
      <ul id="J_Nav"  class="nav-list ks-clear">
        <?php if(in_array("1",$_acl)){ ?>
            <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">仓位管理</div></li>
        <?php } ?>

        <?php if(in_array("2",$_acl)){ ?>
				    <li class="nav-item dl-selected"><div class="nav-item-inner nav-order">管理员用户</div></li>
        <?php } ?>

        <?php if(in_array("3",$_acl)){ ?>
				    <li class="nav-item dl-selected"><div class="nav-item-inner nav-order">用户管理</div></li>
        <?php } ?>

        <?php if(in_array("4",$_acl)){ ?>
				    <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">仓位订单管理</div></li>
        <?php } ?>

        <?php if(in_array("5",$_acl)){ ?>
				    <li class="nav-item dl-selected"><div class="nav-item-inner nav-home">用户充值管理</div></li>
        <?php } ?>
      </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-conten">

    </ul>
   </div>
  <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/assets/js/jquery-1.8.1.min.js"></script>
  <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/assets/js/bui-min.js"></script>
  <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/assets/js/common/main-min.js"></script>
  <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/assets/js/config-min.js"></script>
  <script>
    BUI.use('common/main',function(){
      var config = [
    <?php if(in_array("1",$_acl)){ ?>
	  {id:'1',homePage : '3',menu:[{text:'仓位管理',items:[
	  {id:'3',text:'所有仓位',href:'<?php echo $this->url->getBaseUri() ?>admin/Bin/index'},
	  {id:'12',text:'添加仓位',href:'<?php echo $this->url->getBaseUri() ?>admin/Bin/add'}
	  ]}]},
    <?php } ?>
     <?php if(in_array("2",$_acl)){ ?>
	  {id:'7',homePage : '19',menu:[{text:'管理员用户',items:[
	  {id:'19',text:'所有用户',href:'<?php echo $this->url->getBaseUri() ?>admin/Admin/index'},
	  {id:'21',text:'添加用户',href:'<?php echo $this->url->getBaseUri() ?>admin/Admin/add'}
	  ]}]},
    <?php } ?>
    <?php if(in_array("3",$_acl)){ ?>
	  {id:'14',homePage : '23',menu:[{text:'用户管理',items:[
	  {id:'23',text:'所有用户',href:'<?php echo $this->url->getBaseUri() ?>admin/User/index'},
	  ]}]},
    <?php } ?>
    <?php if(in_array("4",$_acl)){ ?>
	  {id:'15',homePage : '16',menu:[{text:'仓位订单管理',items:[
	  {id:'16',text:'所有仓位订单',href:'<?php echo $this->url->getBaseUri() ?>/admin/cworder/index'},
    {id:'16',text:'已经使用的仓位',href:'<?php echo $this->url->getBaseUri() ?>/admin/cworder/index'},
    {id:'16',text:'没有使用的仓位',href:'<?php echo $this->url->getBaseUri() ?>/admin/cworder/index'}
	  ]}]},
<?php } ?>
<?php if(in_array("5",$_acl)){ ?>
    {id:'17',homePage : '13',menu:[{text:'用户充值管理',items:[
    {id:'13',text:'用户充值列表',href:'<?php echo $this->url->getBaseUri() ?>admin/Pay/index'}]}]}
    <?php } ?>

	  ];
      new PageUtil.MainPage({
        modulesConfig : config
      });
    });
  </script>
 </body>
</html>